package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 属性分类（支持三级分类）对象 product_category
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
public class ProductCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类唯一标识 */
    private Long id;

    /** 父分类ID（一级分类为0，二级关联一级ID，三级关联二级ID） */
    @Excel(name = "父分类ID", readConverterExp = "一=级分类为0，二级关联一级ID，三级关联二级ID")
    private Long parentId;

    private Long category1Id;

    private Long category2Id;

    /** 分类层级（1：一级；2：二级；3：三级） */
    @Excel(name = "分类层级", readConverterExp = "1=：一级；2：二级；3：三级")
    private Long level;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 同层级排序序号（数字越小越靠前） */
    @Excel(name = "同层级排序序号", readConverterExp = "数=字越小越靠前")
    private Long sort;

    /** 账号状态（0正常 1停用） */
    @Excel(name = "账号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .append("name", getName())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
